package com.xsq.newmall01.Dao;

import org.springframework.stereotype.Repository;

@Repository
public class Good {
    private int goodid;
    private String goodname;
    private int price;
    private String good_desc;

    private Integer merchantId;  // 商家ID
    private String merchantName; // 商家名称

    public Good() {
    }

    public Good(int goodid, String goodname, int price, String good_desc) {
        this.goodid = goodid;
        this.goodname = goodname;
        this.price = price;
        this.good_desc = good_desc;
    }
    public Good(int goodid) {
        this.goodid = goodid;
    }

    public Good(int goodid, String goodname, int price, String good_desc, Integer merchantId, String merchantName) {
        this.goodid = goodid;
        this.goodname = goodname;
        this.price = price;
        this.good_desc = good_desc;
        this.merchantId = merchantId;
        this.merchantName = merchantName;
    }

    /**
     * 获取
     * @return goodid
     */
    public int getGoodid() {
        return goodid;
    }

    /**
     * 设置
     * @param goodid
     */
    public void setGoodid(int goodid) {
        this.goodid = goodid;
    }

    /**
     * 获取
     * @return goodname
     */
    public String getGoodname() {
        return goodname;
    }

    /**
     * 设置
     * @param goodname
     */
    public void setGoodname(String goodname) {
        this.goodname = goodname;
    }

    /**
     * 获取
     * @return price
     */
    public int getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(int price) {
        this.price = price;
    }

    /**
     * 获取
     * @return good_desc
     */
    public String getGood_desc() {
        return good_desc;
    }

    /**
     * 设置
     * @param good_desc
     */
    public void setGood_desc(String good_desc) {
        this.good_desc = good_desc;
    }

    public String toString() {
        return "Good{goodid = " + goodid + ", goodname = " + goodname + ", price = " + price + ", good_desc = " + good_desc + "}";
    }

    /**
     * 获取
     * @return merchantId
     */
    public Integer getMerchantId() {
        return merchantId;
    }

    /**
     * 设置
     * @param merchantId
     */
    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }

    /**
     * 获取
     * @return merchantName
     */
    public String getMerchantName() {
        return merchantName;
    }

    /**
     * 设置
     * @param merchantName
     */
    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }
}
